package cn.hl.hm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import cn.hl.hm.entity.backstage.BackStageMenus;
import cn.hl.hm.entity.backstage.BackStageRoleMenu;
import cn.hl.hm.entity.backstage.BackStageRoles;

public interface BackStageMenusMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BackStageMenus record);

    int insertSelective(BackStageMenus record);

    BackStageMenus selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BackStageMenus record);

    int updateByPrimaryKey(BackStageMenus record);
    
    List<BackStageMenus> selectUserAuths(Integer userId);
    
    @Select("select id as id ,menu_name as menuName from t_backstage_menus")
    List<BackStageMenus> selectAllMenus();
    
  

}